﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SelectMenu.aspx.cs" Inherits="AlbonWeb.Manager.AccountManager.SelectMenu" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Select Menu</title>
    <link href="/css/dialog.css" rel="stylesheet" type="text/css" />
    <script src="/js/ADS.js" type="text/javascript"></script>
    <script src="/js/dialog.js" type="text/javascript"></script>
    <script type="text/javascript">
        ADS.addEvent(window, 'load', selectMenu);
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="select_menu">
        <asp:Repeater ID="repTopMenu" runat="server" OnItemDataBound="repTopMenu_ItemDataBound">
            <ItemTemplate>
                <div>
                    <input id='<%#Eval("ID")%>' class="parent menu" type="checkbox"/><%#Eval("menuName")%>
                    <asp:HiddenField ID="hfparentid" runat="server" Value='<%#Eval("ID") %>' />
                </div>
                <div style="margin-left:25px;">
                    <asp:Repeater ID="repMenu" runat="server">
                        <ItemTemplate>
                            <div>
                                <input id='<%#Eval("ID")%>' type="checkbox" name='item<%#Eval("parentID")%>' class="item menu" /><%#Eval("menuName")%>
                            </div>
                        </ItemTemplate>
                    </asp:Repeater>
                </div>
            </ItemTemplate>
        </asp:Repeater>
        <div class="select"><input id="btnSelect" type="button" value="Select" /> </div>
    </div>
    </form>
</body>
</html>
